package com.greystripe.sdk;

import android.util.Log;
import android.webkit.JavascriptInterface;

final class bd
{
  private static be a;

  static be a()
  {
    if (a == null)
      a = new be((byte)0);
    return new be((byte)0);
  }

  private static void a(int paramInt, String paramString, Object[] paramArrayOfObject)
  {
    if ((paramString == null) || (paramArrayOfObject.length > 0));
    try
    {
      String str = String.format(paramString, paramArrayOfObject);
      paramString = str;
      Log.println(paramInt, "Greystripe", paramString);
      return;
    }
    catch (Exception localException)
    {
      while (true)
      {
        Object[] arrayOfObject = new Object[2];
        arrayOfObject[0] = Integer.valueOf(paramInt);
        arrayOfObject[1] = paramString;
        paramString = String.format("Error formatting log message (level=%d): %s", arrayOfObject);
        paramInt = 6;
      }
    }
  }

  static void a(String paramString, Object[] paramArrayOfObject)
  {
    if (c() <= 2)
      a(2, paramString, paramArrayOfObject);
  }

  static void b(String paramString, Object[] paramArrayOfObject)
  {
    if (c() <= 3)
      a(3, paramString, paramArrayOfObject);
  }

  static boolean b()
  {
    return 3 >= c();
  }

  private static int c()
  {
    int i = 4;
    try
    {
      if (bj.a(bk.LOG_LEVEL) != null)
      {
        int j = Integer.parseInt(bj.a(bk.LOG_LEVEL));
        i = j;
      }
      return i;
    }
    catch (Exception localException)
    {
    }
    return i;
  }

  static void c(String paramString, Object[] paramArrayOfObject)
  {
    if (c() <= 4)
      a(4, paramString, paramArrayOfObject);
  }

  static void d(String paramString, Object[] paramArrayOfObject)
  {
    if (c() <= 5)
      a(5, paramString, paramArrayOfObject);
  }

  @JavascriptInterface
  static void e(String paramString, Object[] paramArrayOfObject)
  {
    if (c() <= 6)
      a(6, paramString, paramArrayOfObject);
  }

  static void f(String paramString, Object[] paramArrayOfObject)
  {
    if (c() <= 7)
      a(7, paramString, paramArrayOfObject);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.greystripe.sdk.bd
 * JD-Core Version:    0.6.2
 */